﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace ReseWCF
{
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        List<Resa> GetResor();

        [OperationContract]
        List<Resa> GetResorByUser(string anstalld);

        [OperationContract]
        List<Resa> GetResorByUserID(int id);

        [OperationContract]
        List<ReseForskott> GetReseForskott();

        [OperationContract]
        List<ReseForskott> GetReseForskottByUser(string anstalld);

        [OperationContract]
        List<Utlagg> GetUtlagg();

        [OperationContract]
        List<Utlagg> GetUtlaggByResa(int resa);

        [OperationContract]
        List<Konto> GetKonto();

        [OperationContract]
        List<Handlaggare> GetHandlaggare();

        [OperationContract]
        void SetResor(List<Resa> resor);

        [OperationContract]
        void SetReseForskott(List<ReseForskott> reseforskott);

        [OperationContract]
        void SetUtlagg(List<Utlagg> utlagg);

        [OperationContract]
        void SetKonto(List<Konto> konto);

        [OperationContract]
        void SetHandlaggare(List<Handlaggare> handlaggare);

        [OperationContract]
        void UpdateReseforskott(short id, byte utnyttjad);

        [OperationContract]
        void UpdateResa(short id);

    }
}